<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>关闭窗口</title>
	</head>
	<body>
		<button type="button" onclick="test()">关闭窗口</button>
	</body>
	<!-- 
		关闭窗口
		​	window.close()：关闭窗口。
	 -->
	 <script type="text/javascript">
	 	function test(){
			window.close();
		}
		
		
	 </script>
</html>
